public class Complex {
    private double realPart;
    private double imaginPart;
    public Complex(){
        double realPart;
        double imaginPart;
    }
    public Complex(double r,double i){
        double realPart;
        double imaginPart;
        this.realPart=r;
        this.imaginPart=i;
    }
    public double getRealPart(){
        return realPart;
    }
    public double getImaginPart(){
        return imaginPart;
    }
    public void setRealPart(double d){
        this.realPart=d;
    }

    public void setImaginPart(double d) {
        this.imaginPart =d;
    }
    public void ComplexAdd(Complex c){
        this.realPart+=c.realPart;
        this.imaginPart+=c.imaginPart;
    }
    public void ComplexAdd(double c){
        this.realPart+=c;
    }
    public void ComplexMinus(Complex c){
        this.realPart-=c.realPart;
        this.imaginPart-=c.imaginPart;
    }
    public void ComplexMinus(double c){
        this.realPart-=c;
    }
    public void ComplexMulti(Complex c){
        this.realPart*=c.realPart;
        this.imaginPart*=c.imaginPart;
    }
    public void ComplexMulti(double c){
        this.realPart*=c;
    }
}
